.password-list-page {
    display: grid;
    grid-auto-columns: 323px auto 1fr;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.password-list-page .empty-state {
    display: none;
}

.password-list-page.is-empty {
    grid-auto-columns: 1fr;
    grid-auto-rows: auto 1fr;
}

.password-list-page.is-empty .password-list,
.password-list-page.is-empty .detail-panel,
.password-list-page.is-empty .vertical-divider {
    display: none;
}

.password-list-page.is-empty .empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.password-list-page .empty-state div.empty-state {
    background: url("../../images/pm/empty-list.png") no-repeat;
    width: 200px;
    height: 200px;
    background-size: contain;
}

.password-list-page .empty-state div.error {
    background: url("../../images/pm/error-loading.png") no-repeat;
    width: 120px;
    height: 120px;
    background-size: contain;
}

.password-list-page .empty-state div.empty-state.empty-search-results {
    background: url("../../images/pm/empty-search-results.png") no-repeat;
    width: 120px;
    height: 120px;
    background-size: contain;
}

.password-list-page .empty-state h1 {
    color: var(--mobile-text-primary);
}

.password-list-page .empty-state p {
    font: var(--mobile-font-copy-regular);
    color: var(--mobile-text-secondary);
    max-width: 466px;
    text-align: center;
    margin-top: 0;
}

.password-list-panel {
    display: flex;
    flex-direction: column;
    grid-column: 1;
    overflow: hidden;
}

.detail-panel {
    grid-column: 3;
    overflow: hidden auto;
}

.password-list {
    cursor: default;
    height: 100%;
}

.password-list-page:not(.is-empty) .vertical-divider {
    border-left: 1px solid var(--mobile-border-strong);
    width: 0;
    grid-column: 2;
}

.list-header,
.password-list-page .sk-loading {
    display: flex;
    min-height: 36px;
    padding: 0 24px;
    margin: 0;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    align-self: stretch;
    color: var(--mobile-text-primary);
    font: var(--mobile-font-caption-large-bold);
}

.sub-header {
    display: flex;
    padding: 16px 24px 0;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--mobile-page-background);
    color: var(--mobile-text-primary);
}

.name-sub-header {
    display: flex;
    align-items: center;
}

.name-sub-header h1 {
    margin-inline-start: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 330px;
}

.password-list-page .detail-form {
    display: flex;
    flex-direction: column;
    padding: 24px 24px 0;
}

.password-item:not(.sk-loading) {
    cursor: pointer;
}

.password-list-page .detail-form .mega-input {
    width: 100%;
    margin-bottom: 24px;
    max-width: 466px;
    box-sizing: border-box;
    resize: none;
}

.password-list-page .detail-form textarea.form-element {
    min-height: 48px;
    max-height: 142px;
    overflow-y: auto;
}

.password-list-page .detail-form p.text-detail {
    font: var(--mobile-font-caption-small-bold);
    margin-top: 0;
    color: var(--mobile-text-primary);
}

.password-list-page .detail-form p.text-detail span {
    font: var(--mobile-font-caption-small-regular);
}

.name-sort.nav-elem.dropdown-button {
    font: var(--mobile-font-caption-small-regular);
    padding: 16px 24px;
    color: var(--mobile-text-primary);
}
.name-sort.nav-elem.dropdown-button.active {
    background: var(--mobile-page-background);
}
.name-sort.nav-elem.dropdown-button .dropdown-options-wrap {
    margin-inline-start: 16px;
}
.name-sort.nav-elem.dropdown-button.nav-elem .text-box-wrapper {
    margin-inline-end: 8px;
}

.name-sort.nav-elem.dropdown-button .primary-text {
    font: var(--mobile-font-caption-small-regular);
}

.name-sort.nav-elem.dropdown-button .icon {
    --icon-size: 16px;
}

.name-sort .icon.desc {
    transform: rotateZ(180deg);
}

.password-list .nav-elem:last-of-type {
    margin-bottom: 24px;
}

.password-item span {
    overflow: hidden;
    white-space: nowrap;
}

.password-item.nav-elem .manual-favicon span,
.detail-panel .name-sub-header .manual-favicon span {
    width: 24px;
    display: flex;
    justify-content: center;
    font: var(--mobile-font-caption-small-semibold);
}

.password-list-page .detail-panel .name-sub-header .favicon,
.password-list-page .detail-panel .name-sub-header .favicon .favicon-brand img {
    width: 32px;
    height: 32px;
}

.password-list-page .detail-panel .name-sub-header .manual-favicon i {
    --icon-size: 24px;
}

.password-list-page .detail-panel .name-sub-header .favicon .favicon-brand i {
    --icon-size: 32px;
}

.password-item.nav-elem span.primary-text {
    font: var(--mobile-font-caption-large-semibold);
    color: var(--mobile-text-primary);
}

.password-item span.primary-text,
.password-item span.sub-text {
    width: 220px;
    text-overflow: ellipsis;
}

.search-results {
    width: 323px;
    height: 56px;
    box-sizing: border-box;
    padding: 16px 24px;
    border-bottom: 1px solid var(--mobile-border-strong);
    color: var(--mobile-text-secondary);
    font: var(--mobile-font-copy-semibold);
}

.password-list-page .detail-panel.tutorial p.text-detail,
.password-list-page .detail-panel.tutorial .read-only-actions > :last-child,
.mega-component.read-only-field.highlighted .read-only-actions > :last-child {
    display: none;
}

.password-list-page .detail-panel.tutorial .mega-component.read-only-field#otp {
    margin-bottom: 0;
}

/* Overridden component styles for webclient layout */

.password-list-page {
    grid-auto-columns: max-content auto 1fr;
}

.password-list-page.showing-banner {
    grid-auto-rows: max-content auto 1fr;
}

.password-list-page .mega-pass-install-banner {
    grid-column: 1 / 4;
}

.password-list-page .name-sub-header {
    padding: 24px 0;
    max-width: calc(100% - 36px);
}

.password-list-page .name-sub-header h1 {
    width: auto;
    font: var(--mobile-font-heading-h1);
}

.password-list-page .sub-header, .password-list-page .detail-form {
    padding-top: 0;
    max-width: 480px;
    margin: auto;
}

.password-item .text-box-wrapper {
    overflow: hidden;
    flex: 1;
}

.password-item span.primary-text,
.password-item span.sub-text {
    width: auto;
    max-width: 100%;
}

.password-list .password-item .nav-elem:last-of-type {
    margin-bottom: 0;
}

.mega-component.name-sort .right-icon {
    margin-inline-start: 0;
}

.password-list-page .empty-state div.empty-state {
    width: 160px;
    height: 160px;
}

.password-list-page.is-empty .password-list-panel {
    width: 100% !important;
}

.password-list-page.is-empty .password-list-panel,
.password-list-page.is-empty .empty-state
{
    grid-column: 1/4;
}

.password-list-page.is-empty .password-list-panel >:not(.top-container),
.password-list-page.is-empty-search-results .password-list-panel >:not(.top-container) {
    display: none;
}

.search-results {
    width: 100%;
    border-top: 1px solid var(--mobile-border-strong);
}

.password-list-panel {
    align-items: flex-start;
}

.password-list-page.is-empty-search-results .password-list-panel {
    grid-row: 1;
    z-index: 1;
}

.password-list-page.is-empty-search-results .detail-panel {
    visibility: hidden;
    height: 0;
}

.password-list-page.is-empty-search-results .empty-state {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.password-list-page.is-empty-search-results.showing-banner .password-list-panel,
.password-list-page.is-empty-search-results.showing-banner .empty-state {
    grid-row: 2;
}

/* New features for webclient */
.password-list-page .detail-panel .nav-header {
    display: none;
}

.password-list-page .left-pane-drag-handle {
    right: -5px;
}

.password-list-page .left-pane-drag-handle::after {
    display: none;
}

@media only screen and (min-width: 1080px) {
    .password-list .password-item .context-menu-btn {
        visibility: hidden;
    }
}

/* Small and Medium secondary content column */
@media screen and (max-width: 1079px) {
    .password-list-page {
        grid-auto-columns: 1fr;
        grid-auto-rows: auto 1fr;
    }

    .password-list-page .password-list-panel {
        width: 100% !important;
        grid-row: 2/3;
        background: var(--mobile-page-background);
        z-index: 1;
    }

    .password-list-page .vertical-divider {
        display: none;
    }

    .password-list-page .detail-panel {
        grid-column: 1;
        grid-row: 2/3;
        z-index: 0;
        background: var(--mobile-page-background);
    }

    .password-list-page .detail-panel.active {
        z-index: 2;
    }

    .password-list-page .detail-panel .nav-header {
        display: block;
        padding: 16px 24px 0;
        max-width: 480px;
        margin: auto;
    }

    .password-list-page .empty-state {
        grid-row: 3/4;
    }

    .password-list-page .nav-elem.password-item.active {
        background: none;
    }

    .password-list-page .mega-pass-install-banner,
    .password-list-page.is-empty .password-list-panel,
    .password-list-page.is-empty .empty-state {
        grid-column: 1;
    }

    .password-list-page.is-empty,
    .password-list-page.is-empty-search-results {
        grid-auto-rows: max-content auto 1fr;
    }

    .password-list-page.is-empty-search-results .empty-state {
        grid-row: 2;
    }

    .password-list-page.is-empty-search-results.showing-banner .empty-state {
        grid-row: 3;
    }
}

/* A 1080px screen has min value equal to max value */
@media only screen and (max-width: 1080px) {
    .password-list-page .password-list-panel .left-pane-drag-handle {
        display: none;
    }
}
